import request from '@/utils/request'

// 查询ID-05 -21 -39 降血糖药物,骨质疏松治疗药物及利尿药列表
export function listTdmJiangXueTang(query) {
  return request({
    url: '/tdm/TdmJiangXueTang/list',
    method: 'get',
    params: query
  })
}

// 查询ID-05 -21 -39 降血糖药物,骨质疏松治疗药物及利尿药详细
export function getTdmJiangXueTang(id) {
  return request({
    url: '/tdm/TdmJiangXueTang/' + id,
    method: 'get'
  })
}

// 新增ID-05 -21 -39 降血糖药物,骨质疏松治疗药物及利尿药
export function addTdmJiangXueTang(data) {
  return request({
    url: '/tdm/TdmJiangXueTang',
    method: 'post',
    data: data
  })
}

// 修改ID-05 -21 -39 降血糖药物,骨质疏松治疗药物及利尿药
export function updateTdmJiangXueTang(data) {
  return request({
    url: '/tdm/TdmJiangXueTang',
    method: 'put',
    data: data
  })
}

// 删除ID-05 -21 -39 降血糖药物,骨质疏松治疗药物及利尿药
export function delTdmJiangXueTang(id) {
  return request({
    url: '/tdm/TdmJiangXueTang/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
